<template>
  <div class="toast">
    <div class="content">
      <img
        src="//i.thsi.cn/staticS3/mobileweb-upload-static-server.img/m/atom/4dbf902a-3b37-4927-bc47-9541c28b25c3.png"
        alt=""
      /><span>{{ content }}</span>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    content: {
      type: String,
      default: '已复制',
      required: true
    }
  }
};
</script>
<style lang="less" scoped>
.toast {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  .content {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 8px;
    height: 32px;
    background: #1b1b24;
    border: 1px solid #4f4f5e;
    box-shadow: 0px 4px 8px 0px rgba(39, 40, 65, 0.16);
    border-radius: 8px;
    img {
      width: 16px;
      height: 16px;
      margin-right: 4px;
    }
    span {
      font-family: PingFangSC-Regular;
      font-size: 14px;
      color: #d1d1e0;
      line-height: 22px;
      font-weight: 400;
    }
  }
}
</style>
